; S3 Graphics Windows 7 Display INF file
; Copyright (c) S3 Graphics Co., Ltd. All rights reserved.

[Version]
Signature   = "$Windows NT$"
Provider    = %S3GRAPHICS%
ClassGUID   = {4D36E968-E325-11CE-BFC1-08002BE10318}
Class       = Display
CatalogFile = S3G_DST.CAT
DriverVer   = 07/07/2011, 8.16.12.0555

[DestinationDirs]
DefaultDestDir        = 11
KMode.Files           = 12
UMode.Files           = 11
UModeWow.Files	      = 10, SysWow64
UModeICD.Files        = 11
UModeICDWow.Files     = 10, SysWow64
CloneView.Files       = 11
Character.Files       = 11
CharacterWow.Files    = 10, SysWow64
CfgData.Files         = 11


CoInstaller.Files     = 11
DisplyAPI.Files       = 11
DisplyAPIWow.Files    = 10, SysWow64


[SourceDisksNames]
1 = %DiskID1%

[SourceDisksFiles]
S3DKMD_64.sys         = 1
s3bios64.sys          = 1
S3DDX9L_64.dll        = 1
S3DDX10_64.dll        = 1
S3DDX9L_WOW64.dll     = 1
S3DDX10_WOW64.dll     = 1
S3DLDMICD_64.dll      = 1
S3DLDMICD_WOW.dll     = 1
S3DGLSL_64.dll        = 1
S3DGLSL_32.dll        = 1
S3Clone64.dll         = 1
S3vGPsh.hgp           = 1

S3Char.dat            = 1
S3App.cfg             = 1
S3DApp.cfg            = 1

; DisplyAPI
S3Dapi64.dll          = 1

; DisplyAPIWow
S3Dapi32.dll          = 1


; CoInstaller
s3minset.exe          = 1
s3iset64.dll          = 1
S3iset32.txt					= 1

[Manufacturer]
%S3GRAPHICS% = S3G.Mfg,NTamd64.6.0

[S3G.Mfg.NTamd64.6.0]
%S3G_Chrome540_530_G_001%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_90605333
%S3G_Chrome540_530_G_002%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06205333
%S3G_Chrome540_530_G_003%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06305333
%S3G_Chrome540_530_G_004%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06405333
%S3G_Chrome540_530_G_005%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06705333
%S3G_Chrome540_530_G_006%           = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06105333
%S3G_Chrome540_530_G_007%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06115333

%S3G_Chrome500_540_ULP_001%         = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06905333
%S3G_Chrome500_540_ULP_002%         = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06B05333

%S3G_Chrome500_535_ULP_001%         = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06225333
%S3G_Chrome500_535_ULP_002%         = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06415333

%S3G_D4_Embedded_SKU_001%           = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06D05333
%S3G_D4_Embedded_SKU_002%           = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06E05333
%S3G_D4_Embedded_SKU_003%           = S3DDX_PW, PCI\VEN_5333&DEV_9060&SUBSYS_06D15333
%S3G_D4_Embedded_SKU_007%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06425333
%S3G_D4_Embedded_SKU_008%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06B15333
%S3G_D4_Embedded_SKU_009%           = S3DDX, PCI\VEN_5333&DEV_9060&SUBSYS_06E25333


[ControlFlags]
ExcludeFromSelect = *

[S3DDX]
FeatureScore   = F6
CopyFiles      = KMode.Files, UMode.Files, UModeWow.Files, UModeICD.Files, UModeICDWOW.Files, CloneView.Files, CoInstaller.Files, DisplyAPI.Files, DisplyAPIWow.Files,Character.Files, CharacterWow.Files, CfgData.Files
AddReg         = DriverSettings.Regs, OpenGLSettings.Regs, CoInstaller.Regs
DelReg         = DriverSettingsClean.Regs, OpenGLSettingsClean.Regs, TempSettingsClean.Regs
RegisterDlls   = CloneView.RegDll
;UnregisterDlls = CloneView.RegDll
;AddPowerSetting = S3GPowerPolicy

[S3DDX_PW]
FeatureScore   = F6
CopyFiles      = KMode.Files, UMode.Files, UModeWow.Files, UModeICD.Files, UModeICDWOW.Files, CloneView.Files, CoInstaller.Files, DisplyAPI.Files, DisplyAPIWow.Files, Character.Files, CharacterWow.Files, CfgData.Files
AddReg         = DriverSettings.Regs, OpenGLSettings.Regs, CoInstaller.Regs
DelReg         = DriverSettingsClean.Regs, OpenGLSettingsClean.Regs, TempSettingsClean.Regs
RegisterDlls   = CloneView.RegDll
;UnregisterDlls = CloneView.RegDll
AddPowerSetting = S3GPowerPolicy

[S3DDX.HW]
AddReg         = SupportMSI.Regs

[S3DDX_PW.HW]
AddReg         = SupportMSI.Regs

[S3DDX.GeneralConfigData]
MaximumDeviceMemoryConfiguration = 256
MaximumNumberOfDevices           = 2

[S3DDX_PW.GeneralConfigData]
MaximumDeviceMemoryConfiguration = 256
MaximumNumberOfDevices           = 2

[S3DDX.Services]
AddService     = S3DDX, 0x00000002, Service.Inst


[S3DDX_PW.Services]
AddService     = S3DDX, 0x00000002, Service.Inst


[Service.Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\S3DKMD_64.sys


[CloneView.RegDll]
11,,S3Clone64.dll,1

[S3GPowerPolicy]
Subgroup = {191F65B5-D45C-4a4f-8AAE-1AB8BFD980E6}, "S3 Graphics Main Power Settings", "Set all graphics power settings"
Setting  = {D1F2EA2C-99E2-4c5b-AEC6-3F66B4766E70}, "S3 Graphics Engine Power Setting", "Configures the GPU Power Management Mode"

Value   = 0, "Power Saver","Maximum Power Savings",%REG_DWORD%,0x0
Value   = 1, "Balanced","Medium Power Savings",%REG_DWORD%,0x1
Value   = 2, "High Performance","Maximum Performance",%REG_DWORD%,0x2

Default = %GUID_MAX_POWER_SAVINGS%, %AC%, 0
Default = %GUID_MAX_POWER_SAVINGS%, %DC%, 0
Default = %GUID_TYPICAL_POWER_SAVINGS%, %AC%, 1
Default = %GUID_TYPICAL_POWER_SAVINGS%, %DC%, 0
Default = %GUID_MIN_POWER_SAVINGS%, %AC%, 2
Default = %GUID_MIN_POWER_SAVINGS%, %DC%, 1

[KMode.Files]
S3DKMD_64.sys
s3bios64.sys

[UMode.Files]
S3DDX9L_64.dll,,,0x00004000
S3DDX10_64.dll,,,0x00004000
S3vGPsh.hgp


[UModeWow.Files]
S3DDX9L_WOW64.dll,,,0x00004000
S3DDX10_WOW64.dll,,,0x00004000
S3vGPsh.hgp

[UModeICD.Files]
S3DLDMICD_64.dll,,,0x00004000
S3DGLSL_64.dll,,,0x00004000

[UModeICDWow.Files]
S3DLDMICD_WoW.dll,,,0x00004000
S3DGLSL_32.dll,,,0x00004000

[CloneView.Files]
S3Clone64.dll,,,0x00004000

[Character.Files]
S3Char.dat

[CharacterWow.Files]
S3Char.dat

[CfgData.Files]
S3App.cfg
S3DApp.cfg

[DisplyAPI.Files]
S3Dapi64.dll,,,0x00004000

[DisplyAPIWow.Files]
S3Dapi32.dll,,,0x00004000

[CoInstaller.Files]
s3minset.exe,,,0x00004000
s3iset64.dll,,,0x00004000

[SupportMSI.Regs]
HKR, "Interrupt Management", 0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties", 0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties", MSISupported, 0x00010001, 1
HKR, "Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 1

[DriverSettings.Regs]
HKR,, InstalledDisplayDrivers,      %REG_MULTI_SZ%,  "S3DDX9L_64", "S3DDX10_64", "S3DDX10_64", "S3DDX9L_WOW64", "S3DDX10_WOW64", "S3DDX10_WOW64"
HKR,, UserModeDriverName,           %REG_MULTI_SZ%,  "S3DDX9L_64.dll", "S3DDX10_64.dll", "S3DDX10_64.dll"
HKR,, UserModeDriverNameWOW,        %REG_MULTI_SZ%,  "S3DDX9L_WOW64.dll", "S3DDX10_WOW64.dll", "S3DDX10_WOW64.dll"
HKR,, UserModeDriverGUID,           %REG_SZ%,        "{A661981C-9742-4cf0-8298-8530AA65567D}"
HKR,, VgaCompatible,                %REG_DWORD%,     0
HKR,, MultiFunctionSupported,       %REG_DWORD%,     1
HKR,, SupportSAMM,                  %REG_DWORD%,     1
HKR,, SupportIcd,                   %REG_DWORD%,     1
;HKR,, CapabilityOverride,          %REG_DWORD%,     0x8
HKR,, UseAGPDMA,                    %REG_DWORD%,     1
HKR,, bSupportCRTCalibration,       %REG_DWORD%,     1
HKR,, SupportRotation_90,           %REG_DWORD%,     1
HKR,, SupportRotation_180,          %REG_DWORD%,     1
HKR,, SupportRotation_270,          %REG_DWORD%,     1
HKR,, S3GDW_EnableTAA,              %REG_DWORD%,     0
HKR,, VoltageScaling,               %REG_DWORD%,     0
HKR,, PowerwiseSupportPort80,       %REG_DWORD%,     0
HKR,, S3GDW_DEVICE_POLLING_SUPPORT, %REG_DWORD%,     1
HKR,, S3GDW_SHRINK_ARLOCK,          %REG_DWORD%,     0
HKR,, S3GDW_REPORT_SCALING_SUPPORT, %REG_DWORD%,     1
HKR,, S3GDW_EDIDMODE_ONLY_IDENTITY, %REG_DWORD%,     1
HKLM,"SOFTWARE\Microsoft\TMM",UseIViewHelper,%REG_DWORD%, 1
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers",UseXPModel,%REG_DWORD%,0
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler",SchedulingMethod,%REG_DWORD%,0
HKLM,"SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Scheduler",EnablePreemption,%REG_DWORD%,1
HKLM,"System\CurrentControlSet\Control\GraphicsDrivers\MemoryManager",Period.EnableEvictionThresholdForWrite,%REG_DWORD%,0

[DriverSettingsClean.Regs]
HKR,, UserModeDriverGUID
HKR,, SupportRotation_90
HKR,, SupportRotation_180
HKR,, SupportRotation_270
HKR,, SupportSAMM
HKR,, S3GDW_EnableTAA
HKR,, VoltageScaling
HKR,, PowerwiseSupportPort80
HKR,, MultiFunctionSupported
HKR,, S3GDW_DEVICE_POLLING_SUPPORT
HKR,, S3GDW_SHRINK_ARLOCK
HKR,, S3GDW_REPORT_SCALING_SUPPORT
HKR,, S3GDW_EDIDMODE_ONLY_IDENTITY
HKLM,"SOFTWARE\Microsoft\TMM",UseIViewHelper

[OpenGLSettings.Regs]
HKR,, OpenGLDriverName,             %REG_MULTI_SZ%, "S3DLDMICD_64"
HKR,, OpenGLVersion,                %REG_DWORD%,    2
HKR,, OpenGLFlags,                  %REG_DWORD%,    1
HKR,, OpenGLDriverNameWow,          %REG_MULTI_SZ%, "S3DLDMICD_WOW"
HKR,, OpenGLVersionWow,             %REG_DWORD%,    2
HKR,, OpenGLFlagsWow,               %REG_DWORD%,    1

[OpenGLSettingsClean.Regs]
HKR,, OpenGLDriverName
HKR,, OpenGLVersion
HKR,, OpenGLFlags
HKR,, OpenGLDriverNameWow
HKR,, OpenGLVersionWow
HKR,, OpenGLFlagsWow
HKR,, S3GDW_UseCPUBlt
HKR,, S3GDW_GsDummyLoopCnt_D2_A0
HKR,, S3GDW_ZCompression

[TempSettingsClean.Regs]
HKR,, UseDDCInfo
HKR,, TvFlickerFilterStatus
HKR,, PanelCenterExpandMode
HKR,, SingleController
HKR,, NtscTvPositionX
HKR,, NtscTvPositionY
HKR,, Pal6TvPositionX
HKR,, Pal6TvPositionY
HKR,, Pal8TvPositionX
HKR,, Pal8TvPositionY
HKR,, DisplaysActivePreference
HKR,, TvStandardPreference
HKR,, DdcMaxRefresh
HKR,, GammaFor16BppModes
HKR,, GammaFor32BppModes
HKR,, GammaIGA2For16BppModes
HKR,, GammaIGA2For32BppModes
HKR,, GammaSupportEnabled

[CoInstaller.Regs]
HKR,,CoInstallers32,%REG_MULTI_SZ%,"S3iset64.dll, slCoInstaller"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayName",,"%ProductLongName% 8.16.12.0555"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"DisplayIcon",,"%11%\s3minset.exe"
HKLM,%CURVER%\Uninstall\%ProductShortName%,UninstallString,,"%11%\s3minset.exe -uninf -u '%ProductShortName%' -ver '%DriverVer%'"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"Publisher",,"%S3GRAPHICS%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"InstallLocation",,"%16422%\%S3Path%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMajor",,"%DriverVer%"
HKLM,%CURVER%\Uninstall\%ProductShortName%,"VersionMinor",,"0.0.0.0"

[Strings]
CtrlFld        = "Controls Folder"
CURVER         = "Software\Microsoft\Windows\CurrentVersion"
S3Path         = "s3graphics\chrome3"
; For uninstallation
DriverVer      = "07/07/2011, 8.16.12.0555"

; Non-Localizable Strings
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
REG_SZ_APPEND  = 0x00010008

; For Powersettings
GUID_MAX_POWER_SAVINGS          = "{a1841308-3541-4fab-bc81-f71556f20b4a}"
GUID_TYPICAL_POWER_SAVINGS      = "{381b4222-f694-41f0-9685-ff5bb260df2e}"
GUID_MIN_POWER_SAVINGS          = "{8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c}"
AC                              = 0
DC                              = 1

; Localizable Strings
S3GRAPHICS                          = "S3 Graphics Co., Ltd."

S3G_Chrome540_530_G_001             = "S3 Graphics CHROME 500 Series"
S3G_Chrome540_530_G_003             = "S3 Graphics CHROME 500 Series "
S3G_Chrome540_530_G_004             = "S3 Graphics CHROME 500 Series  "
S3G_Chrome540_530_G_005             = "S3 Graphics CHROME 500 Series    "
S3G_Chrome540_530_G_006             = "S3 Graphics CHROME 500 Series     "
S3G_Chrome540_530_G_007             = "S3 Graphics CHROME 500 Series      "
S3G_Chrome540_530_G_002             = "S3 Graphics CHROME 530 GT"

S3G_Chrome500_540_ULP_001           = "S3 Graphics CHROME 500 ULP Series"
S3G_Chrome500_540_ULP_002           = "S3 Graphics CHROME 500 ULP Series "
S3G_Chrome500_535_ULP_001           = "S3 Graphics CHROME 500 ULP Series  "
S3G_Chrome500_535_ULP_002           = "S3 Graphics CHROME 500 ULP Series   "

S3G_D4_Embedded_SKU_001             = "S3 Graphics 5400E "
S3G_D4_Embedded_SKU_003             = "S3 Graphics 5400E  "
S3G_D4_Embedded_SKU_007             = "S3 Graphics 5400E   "
S3G_D4_Embedded_SKU_008             = "S3 Graphics 5400E    "
S3G_D4_Embedded_SKU_009             = "S3 Graphics 5400E     "
S3G_D4_Embedded_SKU_002             = "S3 Graphics 5300E "


DiskID1                             = "S3 Graphics Windows Display Driver Installation Disk 1"

ProductLongName="S3 Graphics Chrome 400/500 Series Display Driver"
ProductShortName="Chrome4x"
